package com.trg.designmodel.composite.application;

/**
 * @ClassName: Client
 * @Description:
 * @Author: tangrg
 * @Date: 2021/7/7 14:27
 * @Version: 1.0
 * @Return:
 **/
public class Client {

    public static void main(String[] args) {
        ModelTypeComposite mode = new ModelTypeComposite("111", "延伸期模式");
        ProdcutComposite prodcutComposite = new ProdcutComposite("1", "DERF2.0-中国");
        ExpLeaf exp1 = new ExpLeaf("1,1", "原始");
        ExpLeaf exp2 = new ExpLeaf("1,3", "MOS");
        prodcutComposite.add(exp1);
        prodcutComposite.add(exp2);
        mode.add(prodcutComposite);
        ProdcutComposite prodcutComposite1 = new ProdcutComposite("2", "CFSv2-美国");
        prodcutComposite1.add(exp1);
        prodcutComposite1.add(exp2);
        mode.add(prodcutComposite1);
        System.out.println(mode);
    }
}
